package com.tyning.designpattern.subject;

import com.another.designpattern.subject.impl.ConcreteObserver;
import com.another.designpattern.subject.impl.ConcreteSubject;

/**
 * Created by haining on 2016/11/17.
 */
public class Test {
    public static void main(String[] args){
        Subject subject = new ConcreteSubject();
        subject.addObserver(new ConcreteObserver());
        subject.Notify();
    }
}
